<?php
/* --------------------------------------------------------------
   gm_bookmarks.php 2008-05-29 gambio
   Gambio OHG
   http://www.gambio.de
   Copyright (c) 2008 Gambio OHG
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------

gm_bookmarks.php 01.04.2008 pt
	Gambio OHG
	http://www.gambio.de
	Copyright (c) 2008 Gambio OHG
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
	--------------------------------------------------------------
	*/
	
	defined('_VALID_XTC') or die('Direct Access to this location is not allowed.');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
	<tr>
		<td valign="top" align="left" class="main">
			<b><?php echo MENU_TITLE_BOOKMARKS . " " . $_GET['gm_result']; ?></b> 
		</td>
	</tr>
</table>
<br />
<table border="0" width="100%" cellspacing="0" cellpadding="2" id="gm_table">		
		<tr>
			<td valign="top" align="left" class="main">
				<?php 
					echo "<strong>" . TITLE_BOOKMARK_NAME . "</strong>";
				?>
			</td>
			<td valign="top" align="left" class="main">
				<?php 
					echo "<strong>" . TITLE_BOOKMARK_LINK . "</strong>";
				?>
			</td>
			<td valign="top" align="left" class="main">
				<?php 
					echo "<strong>" . TITLE_BOOKMARK_ICON . "</strong>";
				?>
			</td>	
			<td valign="top" align="left" class="main">
				&nbsp;				
			</td>
		</tr>
	<?php foreach($gm_bookmarks as $key => $value) {?>
		<tr>
			<td valign="top" align="left" class="main">
				<?php 
					echo $value['gm_bookmarks_name'];
				?>
			</td>
			<td valign="top" align="left" class="main">
				<?php 
					echo $value['gm_bookmarks_link'];
				?>
			</td>
			<td valign="top" align="left" class="main">
				<?php
					
					if(file_exists(HTTP_CATALOG_SERVER . DIR_WS_CATALOG . "gm/images/gm_bookmarks/" . $value['gm_bookmarks_image'])) {
						
						$imgsize = getimagesize(HTTP_CATALOG_SERVER . DIR_WS_CATALOG . "gm/images/gm_bookmarks/" . $value['gm_bookmarks_image']);
					}

				?>
				<img src="<?php echo HTTP_CATALOG_SERVER . DIR_WS_CATALOG . "gm/images/gm_bookmarks/" . $value['gm_bookmarks_image']; ?>" <?php echo $imgsize[3]; ?>>
			</td>	
			<td valign="top" align="left" class="main">
				<?php
					echo '[<span class="gm_nav" onclick="gm_get_content(\'' . xtc_href_link('gm_bookmarks_action.php', 'action=gm_edit_bookmarks&gm_bookmarks_id=' . $value['gm_bookmarks_id']) . '\')">' . TITLE_EDIT . "</span>|";
					echo '<span class="gm_nav" onclick="gm_get_content(\'' . xtc_href_link('gm_bookmarks_action.php', 'action=gm_delete_bookmarks&gm_bookmarks_id=' . $value['gm_bookmarks_id']) . '\')">' . TITLE_DELETE . "</span>]";
				?>
			</td>
		</tr>
	<?php } ?>
	</table>
